package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.es.SkuEsModel;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * gulimall-search服务
 *
 * @author DuGuanghan
 * @since 2024-04-09 16:31:40
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    /**
     * 上架商品
     *
     * @param skuEsModelList SKU ES型号列表
     * @return {@link R }
     * @author DuGuanghan
     * @since 2024-04-09 16:31:32
     */
    @PostMapping("/search/save/up")
    R upSpu(@RequestBody List<SkuEsModel> skuEsModelList);

}
